﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using SNPAD.DAL;
using SNPAD.Model;

namespace SNPAD
{
    public partial class FrmRptMain : Form
    {
        public FrmRptMain()
        {
            InitializeComponent();
        }

        private void btn_Login_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void btnSend_Click(object sender, EventArgs e)
        {
             FrmRptSD m = new FrmRptSD (); 
             m.ShowDialog();
        }

        private void skinButton2_Click(object sender, EventArgs e)
        {
            FrmRptBD m = new FrmRptBD();
            m.ShowDialog();
        }

        private void skinButton1_Click(object sender, EventArgs e)
        {
            FrmRptSV m = new FrmRptSV();
            m.ShowDialog();
        }

        private void skinButton3_Click(object sender, EventArgs e)
        {
            Frm_RPTTrack m = new SNPAD.Frm_RPTTrack();
            m.ShowDialog();
        }

        private void skinButton4_Click(object sender, EventArgs e)
        {
            Frm_Rework m = new SNPAD.Frm_Rework();
            m.ShowDialog();
        }

        private void FrmRptMain_Load(object sender, EventArgs e)
        {
            if (GlobalVar.CurrOperator.ToUpper().Equals("MANAGER"))
            {
                skinButton4.Visible = true;
            }
        }

        private void skinButton5_Click(object sender, EventArgs e)
        {
            Frm_Rpt_Rework m = new SNPAD.Frm_Rpt_Rework();
            m.ShowDialog();
        }

        private void skinButton6_Click(object sender, EventArgs e)
        {
            OperatorsDAL x = new DAL.OperatorsDAL();
            operators user = new operators();
            user.curr_user_id = "xzf";
            user.curr_user_name = "xzf";
            user.password = "1";

            x.Insert(user);

        }
    }
}
